package com.zeroone.star.publish.service;

import com.zeroone.star.publish.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author car
 * @since 2024-03-02
 */
public interface IUserService extends IService<User> {

    Integer insertUser(User user);

    Integer deleteUser(Long id);

    User selectUserById(Long id);

    Boolean login(Long id,String password);
    User modifyUserPassword(Long id,String password,String newPassword);

    List<User> batchSelectUser(List<Integer> user);

    Map selectOneByName(String userName);

}
